Three-dimensional geometry processing system

ABSTRACT

A three-dimensional geometry processing system generates an intersection curve between two surfaces, an intersection point between a surface and a curve, an intersection point between three surfaces, and a parameter of a surface at a given point. In this system, candidate points for endpoints of an intersection curve between surfaces are generated and stored in a table, a judgment is made whether or not a tracing of intersection from one of the candidate points in the table can be performed, and, if it is judged that the tracing can be performed, a direction in which the tracing is performed is determined. Convergence calculations are performed so that a leading point of a tracing vector lies on both the two surfaces. Determination of the tracing direction and performance of the convergence calculations are repeated until a predetermined end condition is satisfied, thereby generating a set of points on the intersection curve between the surfaces and generating a sequence of curves which forms the intersection curve to be generated.

BACKGROUND OF THE INVENTION

The present invention relates generally to a geometry processing system, and more particularly to a three-dimensional geometry processing system in which a surface/surface intersection curve, a surface/curve intersection point, an intersection point between three surfaces and a parameter of a projective point on a surface are generated. This system is applicable to three-dimensional Boolean operations devices, three-dimensional free-form surface processing and others.

In computer aided design, several geometry processing techniques are known and used. Among such conventional techniques in the art are: generating a convex hull of a control point of a free-form surface or curve, generating an intersection point between a free-form surface and a parametric curve, generating an internal intersection point between two free-form surfaces, generating coordinates of points on a free-form surface or curve, generating a normal vector of a free-form surface, generating a derivative vector of a free-form surface or curve, generating an approximate polyhedron based on free-form surface data, generating a polyline (plural line segments) based on free-form surface data, generating an intersection point between a plane and a straight line, generating a projective point by projection from a point onto an algebraic surface or plane, generating an intersection point between three planes, generating a parameter of a free-form surface at a point thereon located at the least distance from a specified point. Some of the above mentioned techniques are applied for carrying out the present invention.

In the prior art, "Surface/Surface Intersection" by R. E. Barnhill, G. Farin, M. Jordan and B. R. Piper in Computer Aided Geometric Design, 1987, vol. 4, No.1-3, pp. 3-16 and "A Marching Method For Parametric Surface/Surface Intersection" by R. E. Barnhill, S. N. Kersey in Computer Aided Geometric Design, 1990, vol. 7, No. 1, pp. 257-280, disclose that tracing vectors, tracing end conditions and an intersection point between intersection curves are used in free-form surface/surface intersection calculations, but there is no more disclosure about other techniques. "Predictor-Corrector Type of Intersection Algorithm for C² Parametric Surfaces" by J. J. Chen and T. M. Ozsoy in Computer Aided Geometric Design, 1988, vol. 20, No. 6, pp. 347-352 discloses the uses of tracing vectors and tracing end conditions in free-form surface/surface intersection calculations, but there is no teaching of other more advanced techniques. If the above techniques are simply applied to a known intersection tracing method for generating an intersection curve between free-form surfaces, it is difficult to judge how to start an intersection tracing procedure because a start point at which the procedure is started cannot be easily determined.

There is also a disclosure in the prior art. "Method of Calculating Arbitrary-Order Parametric Curve/Plane Surface Intersection" by Fujisawa and Takamura in the 39th conference of Information Processing Society of Japan, Oct., pp. 936-937, discloses a technique of calculating intersection between a curve and a plane. "Method of Calculating Arbitrary-Order Parametric Curve/Plane Surface Intersection" by A. G. O'Neill and Takamura in the 39th conference of Information Processing Society of Japan, Oct., pp. 938-939, discloses a method of calculating an intersection point between a curve and a quadric surface. However, when these conventional techniques are simply applied, it is difficult to realize a technique or system for generating an intersection point between a curve and a surface.

There is also a conventional technique for generating an intersection point between three planes, or generating an intersection point between three low-order algebraic surfaces. However, there is no disclosure of a more advanced technique for generating an intersection point between three surfaces. Moreover, "Analytic Techniques for Geometric Intersection Problems" by V.Chandru and B. S. Kochar in Geometric Modeling, Farin, G. (Ed), SIAM, Philadelphia, 1987, pp. 305-318, discloses a conventional technique for calculating a geometric intersection. This technique is an analytic approach for solving the intersection problems. However, it is difficult to generate a parameter of a free-form surface at a point when the point does not lie on the surface precisely. The procedure of this technique greatly depends on the type of the surface, and it is difficult to perform reliably the procedure when a higher-order surface is processed.

SUMMARY OF THE INVENTION

Accordingly, it is a general object of the present invention to provide an improved three-dimensional geometry processing system in which the above described problems are eliminated.

Another and more specific object of the present invention to provide a three-dimensional geometry processing system which ensures the reliability and accuracy of a generated intersection curve between two free-form surfaces. The intersection curve is generated through an intersection tracing method for tracing the intersection curve starting from a point on the intersection curve and each of such candidate points are previously generated and stored in an endpoint table. The above mentioned object of the present invention can be achieved by a three-dimensional geometry processing system which includes a checking part for checking whether or not there is an intersection between convex hulls of the surfaces by obtaining the convex hulls of the surfaces at control points, a start-point generating part for generating candidate points of endpoints of the intersection curve by obtaining the results of calculations of intersection points between a surface and a curve and the results of calculations of internal intersection points between two surfaces based on the convex hulls of the surfaces, and for storing the candidate points in a table, a direction generating part for determining a direction in which a tracing of intersection is performed with a tracing vector based on each of the candidate points stored in the table, a selecting part for extracting a point and a vector from the table in which the candidate points are stored, the extracted point having a vector with which the tracing of intersection is not performed, a tracing part for generating a set of points lying on the intersection curve and generating a set of direction vectors at the points on the intersection curve by performing the tracing of intersection with the extracted point and vector, a curve-sequence generating part for generating a sequence of curves based on the points and direction vectors generated by the tracing part, and a dividing part for dividing the intersection curve at intersection points between the curves, which curves are generated by the curve-sequence generating part, by generating the intersection points between the curves. According to the present invention, it is possible to generate an intersection curve between two surfaces reliably. The generation of the intersection curve performed by this system neither depends on the type of the surfaces nor depends on the degree of order of the surfaces, which will realize performance of three-dimensional Boolean operations.

A still another object of the present invention is to provide a three-dimensional geometry processing system which ensures the reliability and accuracy of the generated intersection point between a free-form surface and a parametric curve. The above mentioned object of the present invention can be achieved by a three-dimensional geometry processing system which includes a checking part for checking whether or not there is an intersection between convex hulls by obtaining a convex hull of the surface at a given control point and a convex hull of the curve at a given control point, a generating part for generating a rough intersection point between a plane and a line by obtaining a polyhedron with a polygonal face from the surface and obtaining a polyline from the curve and for generating a parameter of the surface at the rough intersection point and a parameter of the curve at the rough intersection point, the plane being determined by the polygonal face and the line being determined by the polyline, and an adjusting part for generating an intersection point between the surface the curve by adjusting the rough intersection point generated by the generating part. According to the present invention, it is possible to generate an intersection point between a surface and a curve reliably. The generation of the intersection point performed by this system neither depends on the types of the surface and the curve nor depends on the degree of order thereof. This will realize a speedy, accurate calculation of points on an intersection curve between two surfaces when three-dimensional geometry is processed.

A further object of the present invention is to provide a three-dimensional geometry processing system which ensures the reliability and accuracy of a generated intersection point between three surfaces. The above mentioned object of the present invention is achieved by a three-dimensional geometry processing system which includes an input part for inputting data of three surfaces and a rough intersection point between the surfaces, a first generating part for generating coordinates and parameters of three projective points which projective points are obtained by projection of the rough intersection point on each of the surfaces, a second generating part for generating a tangent plane of each of the surfaces at the corresponding projective point, generated by the first generating part, by using a normal vector of each of the surfaces, a third generating part for generating an intersection point between the three tangent planes generated by the second generating part, and a fourth generating part for generating a projective point on each of the three surfaces by projection of the intersection point generated by the third generating part. According to the present invention, it is possible to generate an intersection point between three free-form surfaces reliably. The generation of the intersection point performed by this system neither depends on the type of the surfaces nor depends on the degree of order of the surfaces. This will attain the generation of accurate coordinates of an intersection curve between surfaces.

A further object of the present invention is to provide a three-dimensional geometry processing system which enables generation of parameters of a projective point on a surface from a point when the point does not lie on the surface precisely. The above mentioned object of the present invention can be achieved by a three-dimensional geometry processing system which includes an input part for inputting data of a surface and a point, a parameter generating part for generating rough parameters of the surface by obtaining a polyhedron based on the surface, a polygon in the polyhedron lying in neighborhood of the point, and parameters of the polygon at a given point of the polygon, and a parameter adjusting part for generating parameters of the surface at the point by obtaining the rough parameters generated by the parameter generating part, a tangent plane of the surface at the rough parameters, and a projective point on the tangent plane from the point. According to the present invention, it is possible to generate a parameter of a projective point on a surface reliably even when a point does not lie on the surface precisely. The generation of parameters of a surface at a projective point performed by this system neither depends on the type of the surface nor depends on the degree of order of the surface, which assures the generation of accurate parameters of the surface when an intersection curve between surfaces is generated.

Other objects and further features of the present invention will be apparent from the following detailed description when read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing a three-dimensional geometry processing system in a first embodiment of the invention;

FIG. 2 is a flow chart for explaining convergence calculations performed by a tracing part of the system shown in FIG. 1;

FIG. 3 is a diagram showing an intersection curve generated by the system shown in FIG. 1;

FIG. 4 is a block diagram showing a three-dimensional geometry processing system in a second embodiment of the present invention;

FIG. 5 is a diagram for explaining a procedure of generating an accurate intersection point based on rough intersection points;

FIG. 6 is a flow chart for explaining a procedure performed by an intersection point adjusting part of the system shown in FIG. 4;

FIG. 7 is a diagram showing an intersection point between a free-form surface and a parametric curve;

FIG. 8 is a flow chart for explaining a procedure performed by a three-dimensional geometry processing system in a third embodiment of the invention;

FIG. 9 is a diagram showing an intersection point between three surfaces which is generated by the system in the third embodiment of the invention;

FIG. 10 is a diagram showing a three-dimensional geometry processing system in a fourth embodiment of the invention;

FIG. 11 is a flow chart for explaining a procedure performed by a rough parameter generating part of the system shown in FIG. 10;

FIG. 12 is a flow chart for explaining a procedure performed by a rough parameter adjusting part of the system shown in FIG. 10;

FIGS.13A and 13B are diagrams for explaining a procedure of generating a parameter of a free-form surface when a point does not lie on the surface precisely; and

FIG. 14 is a diagram for explaining a procedure of generating an intersection point between two surfaces.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

First, a description will be given of a first embodiment of a three-dimensional geometry processing system according to the present invention, with reference to FIGS.1 through 3. In FIG. 1, this three-dimensional geometry processing system includes a free-form surface data 1, a free-form surface data 2, a checking part 3 for checking whether or not there is an intersection between convex hulls, a convex hull generator 4 for generating a convex hull of a control point of a free-form surface, a start-point generating part 5 for generating a start point from which intersection tracing is started, an intersection-point generator 6 for generating an intersection point between a free-form surface and a parametric curve, an internal intersection generator 7 for generating an internal intersection point between two free-form surfaces, a direction generating part 8 for generating a direction in which the intersection tracing is performed, a coordinate generator 9 for calculating coordinates of points on a free-form surface, a normal-vector generator 10 for generating a normal vector perpendicular to a tangent plane of a free-form surface, a selecting part 11 for selecting a start point of the intersection tracing, a tracing part 12 for carrying out intersection tracing, a curve sequence generating part 13 for generating a sequence of curves, an intersection divide part 14 for dividing plural sequences of curves at intersection points between the curves, and an intersection curve data 15.

A major purpose of the above mentioned three-dimensional geometry processing system is to generate an intersection curve between two free-form surfaces. Candidate points which may be an endpoint of the intersection curve to be generated are first generated and stored in an endpoint table. A judgment is made whether or not the intersection tracing from one of the candidate points can be performed, and, if it is judged that the intersection tracing can be performed, a direction in which the tracing is performed is determined. Convergence calculations are performed so that a leading point of a tracing vector lies on both the two surfaces. Determination of the tracing direction and performance of the convergence calculations are repeated until a predetermined tracing end condition is satisfied, thereby generating one or more sequences of curves. Intersection points between the generated curves are determined if plural curve sequences are generated, and the curve sequences are divided at the intersection points thus determined.

The conventional devices used in this three-dimensional geometry processing system are the convex hull generator 4, the intersection-point generator 6, the internal intersection generator 7, the coordinate generator 9 and the normal-vector generator 10.

A detailed description of an intersection tracing procedure performed by the system shown in FIG. 1 will now be given. The convex-hull generator 4 generates convex hulls between two free-form surfaces based on the free-form surface data 1 and 2, and the checking part 3 checks whether or not there is an intersection between the convex hulls. If there is no intersection between the convex hulls, the checking part 3 makes the intersection tracing procedure end, since the two free-form surfaces actually have no intersection. Based on the results of calculations of free-form surface/curve intersection performed by the intersection point generator 6 and calculations of surface/surface internal intersection performed by the internal intersection generator 7, candidate points which may be endpoints of an intersection curve are generated by the start-point generating part 5 and stored in the endpoint table. When the endpoint table contains no endpoint, the two surfaces have no intersection and the intersection tracing procedure ends.

The following table TABLE 1 shows the correspondence between the parameters and the symbols, which parameters are used in the three-dimensional geometry processing system according to the present invention.

TABLE 1

    u[1,i]→u.sub.i

    v[1,i]→v.sub.i

    r[2,i]→r.sub.i

    s[2,i]→s.sub.i

Based on each of the endpoints included in the endpoint table, the direction generating part 8 determines a direction in which the intersection tracing is made from each endpoint in the endpoint table. For this purpose, the direction generating part 8 determines a direction of a tracing vector v from each of the endpoints by scanning the endpoint table and extracting the endpoints from the table. When two free-form surfaces S₁ and S₂ are given and an endpoint Pi ("i" denotes an index of the endpoint table) is extracted from the endpoint table, it is assumed that parameters of the surface S₁ at the endpoint Pi are denoted by u[1,i], v[1,i], and parameters of the surface S₂ at the endpoint Pi are denoted by r[2,i], s[2,i]. By means of the coordinate generator 9 and the normal-vector generator 10, a tangent plane of the surface S₁ at (u[1,i], v[1,i]) and a tangent plane of the surface S₂ at (r[2,i], s[2,i]) are generated, and an intersection line L between the tangent planes is determined by the direction generating part 8. The tracing vector v at the point Pi has the same direction as that of the intersection line L.

The selecting part 11 extracts, from the endpoint table, an endpoint and a tracing vector, the endpoint having a vector with which the tracing is not yet performed. Assuming that Pi is the extracted endpoint (i: an index of the endpoint table), the parameters of the surface S₁ at the point Pi are denoted by u[1,i], v[1,i] and the parameters of the surface S₂ at the point Pi are denoted by r[2,i], s[2,i].

The tracing part 12 generates points on the intersection curve as well as direction vectors thereon used when the intersection tracing is performed. The intersection tracing is repeated until the predetermined tracing end conditions are satisfied. By using the points on the intersection curve and the direction vectors, the tracing vector is extended by an appropriate length from each of the points in a direction of the vector v, new points at the ends of the extended vector lying on the two free-form surfaces are determined through Newton-Raphson geometric method. And, the intersection tracing is again performed with the tracing vector by using the new points as the starting points. The above procedure is repeated until the tracing end conditions are satisfied, thereby generating a sequence of points on the intersection curve between the two free-form surfaces. Also, each of the vectors at the corresponding points can be obtained together with the sequence of points.

According to the present invention, when either one of the following two tracing end conditions is satisfied, the procedure of the intersection tracing ends.

1) A distance between an endpoint Pe of a tracing vector v and a point Pt on a trimming edge included in the endpoint table, determined by checking the coordinates of these points, is smaller than a length of the tracing vector, and when a vector is set to the point Pt, the vector has the same direction as that of the tracing vector.

2) An endpoint of a tracing vector does not lie within the parameter space concerning the two free-form surfaces.

The curve sequence generating part 13 generates a sequence of curves based on the points on the intersection curve and based on the direction vectors, generated by the tracing part 12. When plural sequences of curves are generated by the curve sequence generating part 13, intersection points between such curve sequences are calculated by the intersection divide part 14. If the intersection points are obtained, the intersection divide part 14 divides the curve sequences at the calculated points. The intersection divide part 14 generates intersection curve data 15.

In the first embodiment, it is possible to determine an intersection curve between two free-form surfaces by combining the functions of the above described parts 3 through 14. FIG. 3 shows an example of a free-form surface/surface intersection curve C which is thus determined.

FIG. 2 shows a procedure of convergence calculations being performed by the tracing part 12. In step S11 of this procedure, partial derivatives of surface S₁ at u_(i), v_(i), represented by ∂S₁ (u_(i),v_(i))/∂u and ∂S₁ (u_(i),v_(i))/∂v, and partial derivatives of surface S₂ at r_(i), s_(i), represented by ∂S₂ (r_(i),s_(i))/∂r and ∂S₂ (r_(i),s_(i))/∂s, are calculated by means of a known derivative vector generator having a function of partial derivative vector calculation. In step S12, parameters of the surfaces S₁ and S₂ at leading points of a tracing vector v are obtained. Before the parameter values are obtained, δu_(i), δv_(i), δr_(i), and δs_(i) are determined based on the following equations: ##EQU1## By using the thus determined δu_(i), δv_(i), δr_(i), and δs_(i), the parameters of the surfaces S₁ and S₂ at leading points of the tracing vector v are obtained as follows.

    u'=u.sub.i +δu.sub.i, v'=v.sub.i +δv.sub.i,

    r'.increment.r.sub.i +δr.sub.i, s'=s.sub.i +δs.sub.i

In step S13, by means of the known derivative vector generator, the coordinate generator 9 and the normal-vector generator 10, a coordinate S₁ (u',v'), partial derivatives ∂S₁ (u',v')/∂u and ∂S₁ (u',v')/∂v, and a tangent plane P₁ of the surface S₁ at the new parameters u' and v', and a coordinate S₂ (r',s'), partial derivatives ∂S₂ (r',s')/∂r and ∂S₂ (r',s')/∂s, and a tangent plane P₂ of the surface S₂ at the new parameters r' and s' are calculated.

In step S14, when the two tangent planes P₁ and P₂ are parallel to each other, P'=(S₁ (u',v')+S₂ (r',s'))/2. When they are not parallel, an intersection line between the tangent planes is obtained, two projective points on the intersection line by projection from the points S₁ (u',v') and S₂ (r',s') are obtained, and a middle point between the projective points is determined as being the point P'.

In step S15, δu', and δv' are determined by solving the following equation (2) which is made when v₁ =P'-S₁ (u',v') is substituted into the equation (1). Also, δr' and δs' are determined by solving the following equation (3) which is made when v₂ =P'-S₂ (r',s') is substituted into the equation (1). ##EQU2## In step S16, a judgment is made whether or not the values of δu', δv', δr' and δs' are small enough. If the values are found small enough, δu', δv', δr' and δs' show the parameter values on the intersection curve, and the procedure ends. If they are not small enough, step S17 is performed so that the values of u', v', r' and s' are updated as follows.

    u'=u'+δu', v'=v'+δv',

    r'=r'+δr', s'=s'+δs'

Then, the procedure returns to the step S13.

Next, a description will be given of a second embodiment of the present invention, with reference to FIGS.4 through 7. In FIG. 4, this three-dimensional geometry processing system includes a free-form surface data 21, a parametric curve data 22, a checking part 23 for checking whether or not there is an intersection between convex hulls, a convex-hull generator 24 for generating a convex hull of a control point of a parametric curve, a convex-hull generator 25 for generating a convex hull of a control point of a free-form surface, a rough intersection point generating part 26 for generating a rough intersection point, a polyhedron generator 27 for generating a polyhedron of a free-form surface, a polyline generator 28 for generating a polyline (plural line segments) of a parametric curve, an intersection point generator 29 for generating an intersection point between a plane and a line, an intersection point adjusting part 30 for generating an accurate intersection point by adjusting a rough intersection point, a coordinate/derivative generator 31 for generating a coordinate and a derivative of a free-form surface, a coordinate/derivative generator 32 for generating a coordinate and a derivative of a parametric curve, and an intersection point data 33.

The above mentioned three-dimensional geometry processing apparatus generates a rough intersection point between a free-form surface and a parametric curve, and adjusts the rough intersection point by making use of derivatives of the surface and curve so that an accurate intersection point is generated. The above procedure is repeated by the three-dimensional geometry processing system until it is determined that a difference between the resulting intersection point and the real intersection point falls within a predetermined permissible range, thereby generating an accurate intersection point between the surface and the curve.

The conventional devices used for realizing the construction of the system shown in FIG. 4 are the convex-hull generators 24 and 25, the polyhedron generator 27, the polyline generator 28, the intersection point generator 29, the coordinate/derivative generators 31 and 32. In this second embodiment, the three-dimensional geometry processing system generates an intersection point P between a free-form surface and a parametric curve. The input data, supplied to the system, includes a free-form surface S that is C² continuous and a parametric curve C that is C² continuous, and the output data is coordinates of an intersection point P between the surface S and the curve C. FIG. 7 shows this intersection point P between the surface S and the curve C.

The checking part 23 performs rough checking of the presence of intersection between convex hulls, based on data of a convex hull generated by the convex-hull generator 24 from a parametric curve and based on data of a convex hull generated by the convex-hull generator 25 from a free-form surface. The rough intersection point generating part 26 receives data of a polyhedron generated by the polyhedron generator 27 from the surface and data of a polyline generated by the polyline generator 28 from the curve. Based on the data of the polyhedron and the polyline, the intersection point generator 29 receives data of a plane and a straight line based on the polyhedron and polyline and generates a rough intersection point between the plane and the line. The rough intersection point generating part 26 generates the rough intersection point from the generator 29, and generates parameters of the surface and parameters of the curve at the rough intersection point. The intersection point adjusting part 30 generates an accurate intersection point by using the rough intersection point and the parameters of the surface and curve generated by the rough intersection point generating part 26.

FIG. 6 shows a procedure of generating an accurate intersection point from a rough intersection point, which procedure is performed by the intersection point adjusting part 30. FIG. 5 shows an approximate point P(t₀) on a parametric curve and an approximate point S(u₀,v₀) on a free-form surface, which are located in neighborhood of the accurate intersection point to be determined. It is assumed that t₀ is a parameter of the curve P(t) at the rough intersection point, and u₀ and v₀ are parameters of the surface S(u,v) at the rough intersection point.

In step S21 of the procedure shown in FIG. 6, a coordinate P(t₀) and a derivative ∂P(t₀)/∂t of the parametric curve are determined by means of the coordinate/derivative generator 31. Based on the coordinate P(t₀) and the derivative ∂P(t₀)/∂t of the curve, a straight line L is generated which passes through the point P(t₀) and has a direction of the derivative vector ∂P(t₀)/∂t. In step S22, a coordinate S(u₀,v₀) and derivatives ∂S(u₀,v₀)/∂u and ∂S(u₀,v₀)/∂v of the free-form surface are generated by means of the coordinate/derivative generator 32. Based on the coordinate S(u₀,v₀) and the derivatives ∂S(u₀,v₀)/∂u and ∂S(u₀,v₀)/∂v of the surface, a plane P is generated which passes through the point S(u₀,v₀) and is perpendicular to the direction of the normal vector ∂S(u₀,v₀)/∂u x ∂S(u₀,v₀)/∂v.

In step S23, an intersection point Q₁ between the plane P and the line L is determined, and a vector v₁ between the point P(t₀) and the point Q₁ and a vector v₂ between the point S(u₀,v₀) and the point Q₁ are generated. In step S24, the value of δt is determined by solving the following equation (4).

    v.sub.1 =δt ∂P(t.sub.0)/∂t (4)

In step S25, the values of δu and δv are determined by solving the following equation. ##EQU3## In step S26, if the values of δt, δu and δv thus determined are equal to zero, the intersection point Q₁ at such a time is an accurate intersection point to be determined and the above procedure ends. If the values of δt, δu and δv are not equal to zero, step S27 is performed so that the values of t₀, u₀ and v₀ are renewed based on the following formulas.

    t.sub.0 =t.sub.0 +δt, u.sub.0 =u.sub.0 +δu,

    v.sub.0 =v.sub.0 +δv

Then, the procedure returns to step S23.

In this manner, the intersection point adjusting part 30 generates an accurate intersection point from the approximate values of the coordinates t₀, u₀ and v₀ of the rough intersection points. The above described method does not greatly depend on the types of a parametric curve and a free-form surface. The accurate intersection point can be generated if the coordinate and derivatives are determined when parameters of the curve and surface at neighborhood points are given. It is to be noted that the above described method (FIG. 4) is one of methods for selecting a start point from which the tracing of intersection is started.

Next, a description will be given of a third embodiment of the present invention, with reference to FIG. 7. A three-dimensional geometry processing system in this embodiment generates an intersection point between three free-form surfaces, and this intersection point has accurate coordinates, regardless of what type of the surfaces is processed. It is to be noted that this system serves as part of the three-dimensional geometry processing system shown in FIG. 1 when an intersection curve between the surfaces is generated. The conventional devices used for realizing this embodiment of the present invention are: the above mentioned coordinate generator for generating coordinates of points on a free-form surface, the above normal-vector generator for generating a normal vector of a free-form surface, the above derivative-vector generator for generating a derivative vector of a free-form surface, the above projective-point generator for generating a projective point by projection from a point onto an algebraic surface, the above intersection-point generator for generating an intersection point between three planes, and the above parameter generator for generating a parameter of a free-form surface at a point which is located on the surface at the least distance from a specified point.

FIG. 8 shows a procedure of generating an intersection point between three surfaces. Data of three surfaces S₁, S₂ and S₃ as well as a rough intersection point P between the three surfaces, 10 generated by a known generator separate from this system, is the input to this three-dimensional geometry processing system.

In steps 31, the data of three surfaces S₁, S₂ and S₃ and a rough intersection point P between the three surfaces is input to the system. In step S32, coordinates and parameters of projective points obtained by projection from the point P onto the surfaces S₁, S₂ and S₃ are generated. When the surfaces Si (i=1,2,3) are algebraic surfaces, coordinates of the projective points are generated by means of the above coordinate generator. When the surfaces Si are free-form surfaces, parameters of the projective points are generated by means of the above parameter generator.

In step S33, three tangent planes at the projective points, obtained in the step S32 on the surfaces Si are generated by using a normal vector, perpendicular to each of the surfaces, generated by means of the above normal-vector generator. In step S34, an intersection point P' between the three tangent planes, obtained in the step S33, is generated by means of the above intersection-point generator. In step S35, three projective points Pi (i=1,2,3) are generated by projection from the point P' onto the surfaces Si. In this case, when the surfaces Si are algebraic surfaces, the projective points Pi are generated by projection from the point P' onto the surfaces Si, by using the above projective-point generator. When the surfaces Si are free-form surfaces, the projective points Pi are generated by using a vector P'-Pi and derivative vectors of the surfaces generated by means of the above derivative generator.

In step S36, 5u_(i) and 5v_(i) (i=1,2,3) are determined by solving the following equations. ##EQU4## This allows the parameters of the projective points Pi obtained by projection from the point P' onto the free-form surfaces Si to be determined as being u_(i) +δu_(i) and v_(i) +δv_(i).

In step S37, a judgment is made whether or not the values of δu_(i) and δv_(i) (i=1,2,3) are approximately equal to zero. If the values of δu_(i) and δv_(i) are approximately equal to zero, the new projective points Pi are located very close to the previous projective points. In step S38, the intersection point P' at this time is output and the procedure ends. If the values of δu_(i) and δv_(i) are not equal to zero, the procedure returns to the step S33 so that new tangent planes at the projective points Pi are generated for the subsequent steps.

FIG. 9 shows an accurate intersection point between three surfaces. In FIG. 9, L₁₂ is an intersection curve between the surfaces S₁ and S₂, L₁₃ is an intersection curve between the surfaces S₁ and S₃, and L₂₃ is an intersection curve between the surfaces S₂ and S₃. The intersection point P is also an intersection point between these intersection curves.

Next, a description will be given of a fourth embodiment of the invention, with reference to FIGS. 10 through 14. In this embodiment, a latter half of the procedure of generating an internal intersection point between the two surfaces when the candidate points are stored in the endpoint table is performed, which procedure is performed by the start-point generating part 5 of the system shown in FIG. 1. In FIG. 10, this three-dimensional geometry processing system includes a surface/point data 41 containing a free-form surface (S) and a point (P), a rough parameter generating part 42 for generating rough parameters based on the surface (S) and the point (P), a rough parameter adjusting part 43 for generating accurate parameters of the surface (S) at the point (P) based on the rough parameters generated by the part 42, and a parameter storage part 44 in which the accurate parameters from the part 43 are stored. When this three-dimensional geometry processing system is used, accurate parameters of a given surface at a given point can be generated even when the point does not lie precisely on the surface.

The conventional devices used for realizing this embodiment of the invention are: the above mentioned polyhedron generator for generating a polyhedron based on a surface data, the above projective-point generator for generating a projective point by projection from a point onto a plane, the above derivative generator for generating a derivative of a free-form surface, and the above normal-vector generator for generating a normal vector of a free-form surface.

In this embodiment, a free-form surface data (S) and a point data (P) are input to the three-dimensional geometry processing system shown in FIG. 10, and parameters of the surface S at the point P are output by the system shown in FIG. 10. FIG. 13A shows the point P lying on the surface S, and, in this case, the parameters of the surface S at the point P are generated. When the point P does not lie on the surface S precisely, parameters of the surface S at a projective point from the point P are the output, and this projective point is generated by projection from the point P onto the surface S. FIG. 13B shows the projective point P' on the surface S from the point P.

FIG. 11 shows a procedure of generating rough parameters of a surface at a point P which procedure is performed by the rough parameter generating part 42 of the system shown in FIG. 10. In step S41, a free-form surface data (S) and a point data (P) are input to the system. In step S42, a polyhedron is generated based on the surfaces data (S) by means of the known polyhedron generator, and, together with the polyhedron, parameters of each of the polyhedron faces at endpoints of each of the polyhedron faces are generated. In step S43, a polygon lying in neighborhood of the point P is selected from among the polyhedron faces. In step S44, rough parameters are determined by using the parameters of the polygon included in the generated parameters of the polyhedron. When the point P does not lie on the surface S precisely, a projective point P' is generated by means of the known projective-point generator by projection from the point P on the polygon, and rough parameters of the polygon at the point P' are determined. In step S45, the rough parameters of the surface S at the point P are output by the rough parameter generating part 43.

FIG. 12 shows a procedure performed by the rough parameter adjusting part 43 of the system shown in FIG. 10. In step S51, rough parameters u₀ and v₀ of the surface S(u,v) at the point P are received from the rough parameter generating part 42. In step S52, a tangent plane Pt of the surface S(u,v) is generated based on the rough parameters u₀ and v₀, by using a normal vector of the surface S(u,v) obtained by means of the known normal-vector generator. In step S53, a projective point P' from the point P on the tangent plane Pt is generated by means of the known projective-point generator. In step S54, derivatives ∂S(u₀,v₀)/∂u and ∂S(u₀,v₀)/∂v of the surface S(u,v) at the rough parameters u₀ and v₀ are determined by means of the known normal-vector generator, and δu and δv are determined by solving the following equation using the determined derivatives. ##EQU5##

In step S55, a judgment is made whether or not the values of δu and δv are small enough, or approximately equal to zero. When the values of δu and δv are small enough, the parameters u₀ and v₀ of the surface S at that time are output by the rough parameter adjusting part 43 as accurate parameters, and the procedure ends in step S56. When the values of δu and δv are not small enough, the parameters u₀ and v₀ are renewed in step S57 as follows, and the procedure returns to the step S52.

    u.sub.0 =u.sub.0 +δu, v.sub.0 =v.sub.0 +δv

FIG. 14 shows an intersection point between two surfaces. A procedure of generating an intersection point P₁ between a surface S₁ (u,v) and a surface S₂ (r,s) based on parameters of the surfaces S₁ and S₂ at the point P₁ will now be described. The intersection point P₁ is determined based on a parameter t₀ of an intersection curve C(t) and based on parameters u₀ and v₀ of the surface S₁ (u,v). By determining the intersection point P₁ in this manner, parameters r₀ and s₀ of the surface S₂ (r,s) are generated. This means that the thus determined intersection point P₁ includes the data of the parameters u₀ and v₀ of the surface S₁ (u,v) and includes the data of the parameters r₀ and s₀ of the surface S₂ (r,s). Therefore, according to the present invention, it is possible to generate accurate parameters of the surfaces based on the intersection point P₁.

Further, the present invention is not limited to the above described embodiments, and variations and modifications may be made without departing from the scope of the present invention. 

What is claimed is:
 1. A three-dimensional geometry processing system for generating an intersection curve between two surfaces, comprising:checking means for checking whether or not there is an intersection between convex hulls of the surfaces by obtaining the convex hulls of the surfaces at control points; start-point generating means for generating candidate points of endpoints of the intersection curve by obtaining results of calculations of intersection points between a surface and a curve and results of calculations of internal intersection points between two surfaces based on the convex hulls of the surfaces, and for storing the candidate points in a table; direction generating means for determining a direction in which a tracing of intersection is performed with a tracing vector based on each of the candidate points stored in the table; selecting means for extracting a point and a vector from the table in which the candidate points are stored, said extracted point having a vector with which the tracing of intersection is not performed; tracing means for generating a set of points lying on the intersection curve and generating a set of direction vectors at said points on the intersection curve by performing the tracing of intersection with the extracted point and vector; curve-sequence generating means for generating a sequence of curves based on the points and direction vectors generated by said tracing means; and dividing means for dividing the intersection curve at intersection points between the curves, which curves are generated by said curve-sequence generating means, by generating said intersection points between the curves.
 2. The system as claimed in claim 1, wherein a procedure of generating an intersection curve between two surfaces is ended by said start-point generating means when it is judged that no candidate point is stored in the table.
 3. The system as claimed in claim 1, wherein said direction generating means determines a direction of a tracing vector with respect to each of the endpoints of the intersection curve by scanning each of the candidate points stored in the table.
 4. The system as claimed in claim 1, wherein said selecting means generates a parameter of one of said two surfaces with respect to said point in the table having a vector with which the tracing of intersection is not performed, and generates a parameter of the other surface at said point for extracting a point and a vector from the table.
 5. The system as claimed in claim 1, wherein said tracing means generates a set of points on the intersection curve by repeating the tracing of intersection with the extracted point and vector until a predetermined end condition is satisfied.
 6. The system as claimed in claim 1, wherein said dividing means divides the intersection curve at intersection points between the curves when plural sequences of curves are generated by said curve-sequence generating means.
 7. A three-dimensional geometry processing system for generating an intersection point between three surfaces, comprising:input means for inputting data of three surfaces and a rough intersection point between the surfaces; first means for generating coordinates and parameters of three projective points which projective points are obtained by projection of the rough intersection point on each of the surfaces; second means for generating a tangent plane of each of the surfaces at the corresponding projective point, generated by said first means, by using a normal vector of each of the surfaces; third means for generating an intersection point between the three tangent planes generated by said second means; and fourth means for generating a projective point on each of the three surfaces by projection of the intersection point generated by said third means.
 8. The system as claimed in claim 7, wherein said procedure of generating the tangent planes, the intersection point and the projective points is repeated until differences between the intersection point generated by said third means and each of the projective points generated by said fourth means are approximately equal to zero. 